package com.cloudm.technician.ui.modules.cloudm_box.device_detail

import android.annotation.SuppressLint
import android.app.Dialog
import android.os.Bundle
import android.support.v7.app.AlertDialog
import android.view.LayoutInflater
import com.cloudm.technician.R
import com.cloudm.technician.ui.base.BaseDialogFragment

/**
 * 作者: wesley
 * 时间: 2017/12/21
 * 描述: 显示对话框
 */
class DeviceDetailQrCodeDialogFragment : BaseDialogFragment() {

    companion object {

        fun newInstance() = DeviceDetailQrCodeDialogFragment()
    }

    override fun handleBundle(bundle: Bundle) {

    }

    @SuppressLint("InflateParams") override fun createDialog(): Dialog {
        val view = LayoutInflater.from(mContext).inflate(R.layout.dialog_device_detail_qr_code,
                null)
        val dialog = AlertDialog.Builder(mContext).apply {
            setView(view)
        }
        return dialog.create()
    }
}